package com.magus.project.yddemo.entity;

import javax.persistence.Column;
import javax.persistence.ConstraintMode;
import javax.persistence.Entity;
import javax.persistence.ForeignKey;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.magus.framework.core.entity.BaseEntity;
import com.magus.framework.system.entity.Company;
import com.magus.sis.common.entity.ComUnit;

/**
 * 指标映射配置
 * 
 * @author Zhang JiaWei
 * @date 2018-03-08 15:33
 */
@Entity
@Table(name = "YDDEMO_INDICATOR_MAPPER_CONFIG")
public class IndicatorMapperConfig extends BaseEntity {

	/**   */
	private static final long serialVersionUID = 1L;

	/** 指标名称 */
	@Column(name = "NAME_")
	private String name;

	/** 指标编码 */
	@Column(name = "CODE_")
	private String code;

	/** 指标说明 */
	@Column(name = "REMARK_")
	private String remark;

	@ManyToOne
	@JoinColumn(name = "COMPANYR_ID_", foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT))
	private Company company;

	@ManyToOne
	@JoinColumn(name = "COMUNIT_ID_", foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT))
	private ComUnit comUnit;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Company getCompany() {
		return company;
	}

	public void setCompany(Company company) {
		this.company = company;
	}

	public ComUnit getComUnit() {
		return comUnit;
	}

	public void setComUnit(ComUnit comUnit) {
		this.comUnit = comUnit;
	}

}
